<?php
/**
 * Created by PhpStorm.
 * User: Aliaxandr Lazerka
 * Date: 10/26/14
 * Time: 8:42 AM
 */

include_once("functions/db_manipulate.php");

switch ($_GET['act']) {
  case "edit":
    editUser($_POST['usrRole'], $_POST['usrId']);
    break;
  case "del":
    delUser($_GET['uid']);
    break;
}

header("Location: " . $_SERVER['HTTP_REFERER']);